package com.ruoyi.ma.service;

import com.ruoyi.ma.domain.MaMaterialMeasureSingle;
import com.ruoyi.ma.domain.vo.MaMaterialMeasureSingleVo;
import com.ruoyi.ma.domain.bo.MaMaterialMeasureSingleBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.ma.domain.vo.MaMaterialProgressDetailsVo;

import java.util.Collection;
import java.util.List;

/**
 * 材料计量单Service接口
 *
 * @author llb
 * @date 2024-11-01
 */
public interface IMaMaterialMeasureSingleService {

    /**
     * 查询材料计量单
     */
    MaMaterialMeasureSingleVo queryById(Long measureSingleId);

    /**
     * 查询材料计量单列表
     */
    TableDataInfo<MaMaterialMeasureSingleVo> queryPageList(MaMaterialMeasureSingleBo bo, PageQuery pageQuery);

    /**
     * 查询材料计量单列表
     */
    List<MaMaterialMeasureSingleVo> queryList(MaMaterialMeasureSingleBo bo);

    /**
     * 新增材料计量单
     */
    Boolean insertByBo(MaMaterialMeasureSingleBo bo);

    /**
     * 修改材料计量单
     */
    Boolean updateByBo(MaMaterialMeasureSingleBo bo);

    /**
     * 校验并批量删除材料计量单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 获取签收明细
     * @param bo
     * @return
     */
    List<MaMaterialMeasureSingle> progressDetails(MaMaterialMeasureSingleBo bo);

}
